
using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class Army
{
	public List<Hero> Heros;
	public uint AttackScale;

	HerosConfig mHerosConfig;
	
	public Army()
	{
		mHerosConfig = new HerosConfig();
		Heros = new List<Hero>();

		Heros.Add(mHerosConfig.Heros[Heros.Count]);
	}

	public int AttackPower()
	{
		int attackPower = 0;
		float attackScale = 1;

		foreach(Hero item in Heros)
		{
			attackPower += item.AttackPower();
			attackScale *= item.GlobalScale();
		}
		attackPower = (int)(attackPower*attackScale);

		return attackPower;
	}
}
